package com.dopies.ecmobile.model;



import android.os.Environment;

/**
 * constant
 * @author root
 *
 */
public class ProtocolConst {
	
//	public static String SERVER_PATH="http://192.168.1.104/workspace/shop/"; //服务端入口地址
	public static String SERVER_PATH="http://jyc.dopies.com.cn/"; //服务端入口地址
	
	public static String FILEPATH = Environment.getExternalStorageDirectory()+ "/ECMobile/cache";
	
//	public static String HOMEDATA = "home/data";
	public static String HOMEDATA = "home/data.php";
//	public static String CATEGORYGOODS ="home/category";
	public static String CATEGORYGOODS ="home/category.php";
	public static String SEARCH = "interface/search.php"; 
    public static String SHOPHELP = "interface/shopHelp.php";
    public static String GOODSDETAIL = "interface/goods.php";
    
    public static String GOODSDESC = "interface/goods.php?tmp=desc";					// 商品详情，商品描述
    
//    public static String SIGNIN = "user/signin";					// 登录
    public static String SIGNIN = "user/signin.php";					// 登录
    
    public static String SIGNUPFIELDS  = "user/signupFields.php";		// 注册字段
    
//    public static String SIGNUP = "user/signup";	
    public static String SIGNUP = "user/signup.php";                     // 注册
    
    public static String SEARCHKEYWORDS = "interface/searchKeywords.php";			// 获取搜索推荐关键字
    
//    public static String CARTLIST = "cart/list";					// 购物车列表
    public static String CARTLIST = "interface/cart.php?tmp=list";
    
//    public static String USERINFO = "user/info";					// 获取用户中心相关信息
    public static String USERINFO = "user/info.php";	
    
//    public static String COLLECT_LIST = "user/collect/list";		// 收藏列表
    public static String COLLECT_LIST = "user/collect.php?tmp=list";
    
//    public static String COLLECT_DELETE = "user/collect/delete";	// 收藏删除
    public static String COLLECT_DELETE = "user/collect.php?tmp=delete";

//    public static String CARTCREATE = "cart/create";				// 添加到购物车
    public static String CARTCREATE = "interface/cart.php?tmp=create";	
    
//    public static String CARTDELETE = "cart/delete";				// 从购物车删除一件商品
    public static String CARTDELETE = "interface/cart.php?tmp=delete";	
    
//    public static String CARTUPDATA = "cart/update";				// 更新购物车
    public static String CARTUPDATA = "interface/cart.php?tmp=update";
    
    public static String ADDRESS_LIST = "address/list.php";				// 获取用户地址列表
    
    public static String ADDRESS_ADD = "address/add.php";				// 添加用户地址
    
    public static String REGION = "interface/region.php";							// 获取地区城市
    
    public static String CHECKORDER = "interface/flow.php?tmp=checkOrder";			// 提交订单前的订单预览
    
    public static String ADDRESS_INFO = "address/info.php";				// 读取地址详情
    
    public static String ADDRESS_DEFAULT = "address/setDefault.php";	// 设置该地址为默认
    
    public static String ADDRESS_DELETE = "address/delete.php";			// 删除一个地址
    
    public static String ADDRESS_UPDATE = "address/update.php";			// 更新地址
    
    public static String COLLECTION_CREATE = "user/collect.php?tmp=create";	// 收藏
    
    public static String FLOW_DOWN = "interface/flow.php?tmp=done";					// 订单生成
    
    public static String ORDER_LIST = "order/list.php";					// 订单列表
    
    public static String VALIDATE_INTEGRAL = "validate/integral";	// 验证积分
    
    public static String VALIDATE_BONUS = "validate/bonus";			// 验证红包
    
    public static String ORDER_PAY = "order/pay.php";					// 在线支付
    
    public static String ORDER_CANCLE = "order/cancel.php";				// 取消订单

    public static String AFFIRMRECEIVED = "order/affirmReceived.php";	// 确认收货

    public static String ARTICLE = "interface/article.php";						// 获取文章内容
    
    public static String COMMENTS = "interface/comments.php";						// 获取评论列表
    public static String CONFIG = "interface/config.php";						// 获取配置
    public static String CATEGORY = "interface/category.php";                  //获取所有分类
    public static String BRAND = "interface/brand.php";                       //获取所有品牌
    public static String PRICE_RANGE = "interface/price_range.php";           //根据分类获取价格区间
}
